home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / Makefile < prev    next >
Makefile  |  1992-09-16  |  4KB  |  124 lines

  1.   ####     Makefile for the version 2 Texinfo package -*- text -*-    ####
  2.  
  3. # Robert J. Chassell
  4. # Bugs to bob@ai.mit.edu.  I maintain the Emacs Lisp files and the
  5. # manual, and I forward bug reports for info and makeinfo to 
  6. # bfox@gnu.ai.mit.edu, who maintains those utilities.
  7.  
  8. # A `make dist' command creates a compressed tar file of version 2 of
  9. # the Texinfo package, including both the Texinfo and the `makeinfo'
  10. # files.  The file is called `texinfo-2.16.tar.Z' (or some similar
  11. # name, defined with the 'TEXINFO2_DIRECTORY' variable).
  12. #
  13. # This Makefile presumes that the Texinfo documentation and
  14. # miscellaneous files are in the current directory, the Emacs lisp code
  15. # is in a `elisp' subdirectory and the `makeinfo' files are in a `C'
  16. # subdirectory.
  17.  
  18. # Use `tar xvzf texinfo-2.16.tar.Z' to uncompress and extract the contents
  19. # of `texinfo-2.16.tar.Z'.
  20.  
  21. # The contents of `texinfo-2.16.tar.Z' expand to a megabyte or so.
  22.  
  23. # Before mailing texinfo-2.16.tar.Z, if you should mail it,
  24. # uuencode the file with the following command:
  25. # uuencode texinfo-2.16.tar.Z texinfo-2.16.tar.Z > texinfo-2.16.tar.Z.uu
  26.  
  27. #### ==> Specify the following as appropriate: texinfo-2.16, or whatever
  28. TEXINFO2_DIRECTORY = texinfo-2.16
  29.  
  30. TEXINFO_DOCUMENTATION = texinfo2.texi
  31.  
  32. TEXINFO_SUPPORT = README COPYING ChangeLog Makefile New-features fixfonts
  33.  
  34. TEXINFO_ELISP_SOURCES = elisp/texinfo.el \
  35.         elisp/texinfmt.el \
  36.         elisp/texnfo-upd.el \
  37.         elisp/texnfo-tex.el \
  38.         elisp/makeinfo.el 
  39.  
  40. #### include `texi2roff' when it becomes available ####
  41. OTHER_TEXINFO_SOURCES = texi2dvi texinfo.tex
  42.  
  43. INFO_ELISP_SOURCES = elisp/info.el elisp/informat.el
  44.  
  45. MAKEINFO_SOURCES = C/makeinfo.c C/info.c C/texindex.c \
  46.         C/getopt.c C/getopt1.c
  47.  
  48. MAKEINFO_HEADERS = C/getopt.h
  49.  
  50. MAKEINFO_SUPPORT = C/Makefile.in C/configure C/configure.in C/ChangeLog
  51.  
  52. # This Makefile creates subdirectories and links the sources into it.
  53. # When the contents of the tar file are extracted, the files extract
  54. # into the a subdirectory called `texinfo2' containing the
  55. # documentation and miscellaneous files, and subsubdirectories, called
  56. # `elisp' and `C', containing the software.
  57.  
  58. INSTALL = install -c
  59. # These permit overriding just for certain files.
  60. INSTALL_PROGRAM = $(INSTALL)
  61. INSTALL_DATA = $(INSTALL)
  62.  
  63. MAKE = make
  64.  
  65. # Common prefix for installation directories.
  66. # NOTE: This directory must exist when you start installation.
  67. prefix = /usr/local
  68. # Directory in which to put the executable for the commands.
  69. bindir = ${prefix}/bin
  70. # Directory in which to put the directories used by auxiliary programs.
  71. libdir = ${prefix}/lib/tex
  72.  
  73. all:
  74.     cd C; $(MAKE) all
  75.  
  76. info:
  77.     cd C; $(MAKE) info
  78.  
  79. makeinfo:
  80.     cd C; $(MAKE) makeinfo
  81.  
  82. texindex:
  83.     cd C; $(MAKE) texindex
  84.  
  85. TAGS:
  86.     cd C; $(MAKE) TAGS
  87.  
  88. clean:
  89.     cd C; $(MAKE) clean
  90.  
  91. distclean:
  92.     cd C; $(MAKE) distclean
  93.  
  94. realclean:
  95.     cd C; $(MAKE) realclean
  96.  
  97. install:
  98.     $(INSTALL_PROGRAM) texi2dvi $(bindir)/texi2dvi
  99.     $(INSTALL_DATA) texinfo.tex $(libdir)/inputs/texinfo.tex
  100. # Make sure font lcircle10 can be used for formatting and printing.
  101.     ./fixfonts
  102.     cd C; $(MAKE) install
  103.  
  104. dist: $(TEXINFO_DOCUMENTATION) $(TEXINFO_ELISP_SOURCES) \
  105.         $(OTHER_TEXINFO_SOURCES) \
  106.         $(TEXINFO_SUPPORT) \
  107.         $(INFO_ELISP_SOURCES) \
  108.         $(MAKEINFO_SOURCES) $(MAKEINFO_HEADERS) $(MAKEINFO_SUPPORT)
  109.     rm -fr $(TEXINFO2_DIRECTORY)
  110.     mkdir $(TEXINFO2_DIRECTORY) $(TEXINFO2_DIRECTORY)/elisp \
  111.         $(TEXINFO2_DIRECTORY)/C
  112.     ln $(TEXINFO_DOCUMENTATION) $(TEXINFO_SUPPORT) \
  113.         $(OTHER_TEXINFO_SOURCES) \
  114.         $(TEXINFO2_DIRECTORY)
  115.     ln $(TEXINFO_ELISP_SOURCES) $(INFO_ELISP_SOURCES) \
  116.         $(TEXINFO2_DIRECTORY)/elisp
  117.     ln $(MAKEINFO_SOURCES) $(MAKEINFO_HEADERS) \
  118.         $(MAKEINFO_SUPPORT) \
  119.         $(TEXINFO2_DIRECTORY)/C
  120.     tar chvzf $(TEXINFO2_DIRECTORY).tar.Z $(TEXINFO2_DIRECTORY)
  121.     -rm -r $(TEXINFO2_DIRECTORY)
  122.  
  123. ######################################################################
  124.